package com.ljt.business.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ljt.business.entity.Product;
import com.ljt.business.vo.ApplyForVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ljt
 * @since 2021-07-05
 */
public interface ProductMapper extends BaseMapper<Product> {

    IPage<Product> queryProductWithCategoryName(Page<Product> page, @Param(Constants.WRAPPER) QueryWrapper<Product> queryWrapper);

    //单表的 根据条件查询信息
    Page<Product> queryAllProductByCondition(Page applyForPage, @RequestParam String name);

}
